<template>
  <div class="replace-record">
    <el-row class="btn-operation">
      <el-col>
        <el-button
          type="primary"
          size="small"
          @click="openDialogHandle('Add', null)"
        >
          新增
        </el-button>
      </el-col>
    </el-row>
    <el-table :data="tableData" border>
      <el-table-column label="序号" type="index" width="50px"></el-table-column>
      <el-table-column
        label="更换时间"
        prop="a"
        width="150px"
      ></el-table-column>
      <el-table-column label="操作人" prop="a" width="150px"></el-table-column>
      <el-table-column
        label="易损件名称"
        prop="a"
        width="300px"
        show-overflow-tooltip
      ></el-table-column>
      <el-table-column
        label="备注"
        prop="a"
        show-overflow-tooltip
      ></el-table-column>
    </el-table>
    <div class="pagination">
      <el-pagination
        background
        :page-size="pageVO.pageSize"
        :current-page.sync="pageVO.pageNum"
        :total="pageVO.total"
        :layout="pageOptions.layout"
        :page-sizes="pageOptions.pageSizes"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
      />
    </div>
    <replaceRecordDialog ref="dialogRef" />
  </div>
</template>

<script>
import pageQuery from "../../mixins/pageQuery";
import replaceRecordDialog from "./replaceRecordDialog.vue";

export default {
  mixins: [pageQuery],
  components: {
    replaceRecordDialog,
  },
  methods: {
    getTableData() {},
  },
};
</script>

<style lang="scss" scoped>
.replace-record {
  .btn-operation {
    margin-bottom: 15px;
  }
}
</style>
